package 笔试.好未来;

public abstract class Monther {
    public int getAge() {
        return 45;
    }
    public abstract class Son{
        public int getAge(){
            return 38;
        }
    }

    public static void main(String[] args) {
        Monther m = new Monther(){
            public int getAge(){
                return 22;
            }
        };
        Monther.Son s = m.new Son() {
            public int getAge() {
                return 57;
            }
        };
        System.out.println(s.getAge()+" "+m.getAge());
    }

}

